Netstumbler, geoniche: Explicitly init struct tm to zeros to hugh valgrind.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 25 Aug 2005 21:49:03 +0000 (21:49 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 25 Aug 2005 21:49:03 +0000 (21:49 +0000)
gpsbabel/geoniche.c
gpsbabel/netstumbler.c

index c44a94d59346b690798fe9ef0db030ffc96a3413..b0c85be6543246b582ab3b575774b4155f37e712 100644 (file)
@@ -214,7 +214,7 @@ data_read(void)
        int             icon;
        char            *notes;
        char            gid[6+1];
-       struct tm       tm;
+       struct tm       tm  = {0};
 
        wpt = waypt_new();
        if (!wpt)
index 242fdb8815a2c1575f486a6b01f3f0511c2a901b..554d513b2529d2d16883b3393952ea2c2e696708 100644 (file)
@@ -74,7 +74,7 @@ data_read(void)
        int stealth_num = 0, whitespace_num = 0;
        long flags = 0;
        int speed = 0, channel = 0;
-       struct tm tm;
+       struct tm tm = {0};
 
        for(; fgets(ibuf, sizeof(ibuf), file_in);) {
                char *field;